package net.zjitc.Student;

/**
 * @Author admin
 * @Date 2019/3/20 11:13
 */
public abstract class Student {
  final  static int courseNo=3; //课程数
    String type;  //学生类别
    String name;  //学生姓名
    double [] courses; //课程分数
    String courseGrade; //等级


    Student(){

    }
    /**
     * 构造方法：初始化name
     *
     * */
    Student(String name){
       this .name=name;
       courses=new double[courseNo];

    }
    /**
     * 计算等级，抽象方法：让子类重新写该方法
     * */
      public abstract void calculateGrade();


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getCourseGrade() {
        return courseGrade;
    }

    public void setCourseGrade(String courseGrade) {
        this.courseGrade = courseGrade;
    }

    public double[] getCourses() {
        return courses;
    }

    public void setCourses(double[] courses) {
        this.courses = courses;
    }
}
